import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import qiankun from "vite-plugin-qiankun";
import { join } from "path";

export default defineConfig(({ mode }) => {
  return {
    base: "/",
    plugins: [vue(), qiankun("vue-app", { useDevMode: true })],
    server: {
      port: 8080,
    },
    resolve: {
      alias: {
        "@": join(__dirname, "./src"), // 配置 @ 指向 src 目录
      },
    },
  };
});
